package com.hua.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.RequiredArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * ks_comment
 * @author
 */
@Data
@AllArgsConstructor
@RequiredArgsConstructor
@TableName("ks_comment")
public class Comment implements Serializable {
    /**
     * 自增id
     */
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

    /**
     * 评论唯一id
     */
    private String commentId;

    /**
     * 1博客 2问答
     */
    private Integer topicCategory;

    /**
     * 评论主题id
     */
    private String topicId;

    /**
     * 评论者id
     */
    private String userId;

    /**
     * 评论者昵称
     */
    private String userName;

    /**
     * 评论者头像
     */
    private String userAvatar;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 评论创建时间
     */
    private Date gmtCreate;


    @TableField(exist = false)
    private Question question;

    @TableField(exist = false)
    private Blog blog;

    private static final long serialVersionUID = 1L;
}
